<?php

namespace App\Repositories;

use App\Models\Goods;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class GoodsRepository
 * @package App\Repositories
 * @version November 4, 2017, 6:32 am UTC
 *
 * @method Goods findWithoutFail($id, $columns = ['*'])
 * @method Goods find($id, $columns = ['*'])
 * @method Goods first($columns = ['*'])
*/
class GoodsRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'image',
        'sn',
        'name',
        'remark',
        'number',
        'price',
        'average_price',
        'rate',
        'discounts'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return Goods::class;
    }
}
